Skip to content

fix: apply workspace-scoped overrides on publish - #309

Merged
Alexander Zaslonov (azaslonov) merged 4 commits into
Azure:mainfrom
centreboard:workspace-override
Oct 5, 2026
Merged

Alexander Zaslonov (azaslonov) merged 4 commits into
Azure:mainfrom
centreboard:workspace-override

Conversation

@centreboard

Copy link
Copy Markdown
Contributor

Workspace-scoped overrides were being parsed but silently ignored on publish for all child resources.
This fix applies them at the different nested levels during the publish, including for overrides of autogenerated named values

Fixes #118

Previously the CLI applied overrides to the workspace container itself (the properties on the workspace entry), but silently ignored all nested child overrides (apis, backends, loggers, etc. within the workspace)

Compatibility note: workspace-scoped resources that previously picked up a same-named top-level override will no longer do so. The new tests make that isolation intentional, but existing configs relying on the old behavior may publish different values.
Copilot AI balanced review requested due to automatic review settings October 2, 2026 07:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Post-merge override checks still use service-level sections, causing some workspace API and named-value overrides to be altered or discarded.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Applies workspace-scoped overrides during publishing and aligns auto-generated named-value handling.

Changes:

  • Resolves direct and nested overrides through workspace configuration.
  • Updates named-value filtering and redaction checks.
  • Adds workspace override tests and removes obsolete documentation.
File Description
src/​services/​override-merger.ts Resolves workspace-scoped override sections.
src/​services/​publish-service.ts Handles workspace named-value overrides.
src/​services/​secret-redaction-guard.ts Aligns workspace named-value scanning.
tests/​unit/​services/​override-merger.test.ts Tests workspace override merging.
tests/​unit/​services/​publish-service.test.ts Tests auto-generated workspace named values.
docs/​guides/​environment-overrides.md Removes the resolved limitation notice.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/services/override-merger.ts Resolved
@centreboard

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

Copilot AI balanced review requested due to automatic review settings October 3, 2026 10:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The scoped resolution and affected callers have no identified blocking issues; regression tests were inspected but not executed.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)

@centreboard
Matthew Johnson (centreboard) marked this pull request as ready for review October 3, 2026 10:51
@azaslonov
Alexander Zaslonov (azaslonov) merged commit fb157de into Azure:main Oct 5, 2026
6 checks passed
@centreboard
Matthew Johnson (centreboard) deleted the workspace-override branch October 6, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workspace-scoped override properties not applied

4 participants